﻿using QBZ.Evaluation.Models;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace QBZ.Evaluation.Repositories.DataAccess
{
    [Table("tb_user")]
    public partial class TbUser
    {
        [Key]
        public int UserId { get; set; }

        [MaxLength(50),Required]
        public string UserName { get; set; }

        [MaxLength(50)]
        public string UserNick { get; set; }

        [StringLength(32)]
        public string UserPassword { get; set; }

        [EmailAddress,MaxLength(50)]
        public string UserEmail { get; set; }

        [MaxLength(50)]
        public string UserPhone { get; set; }

        public bool IsDelete { get; set; }

        public int RoleChildId { get; set; }

        [ForeignKey("RoleChildId")]
        public virtual TbRoleChild RoleChild { get; set; }

        public UserLevel UserLevel { get; set; }

        public DateTime CreateOn { get; set; }

        public int CreateBy { get; set; }

        public DateTime? UpdateOn { get; set; }

        public int? UpdateBy { get; set; }

        [Timestamp]
        public byte[] TimeStamp { get; set; }

        public Guid Guid { get; set; }
    }
}